Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cors error if BasePath is set #168

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gentoo90
Copy link
Contributor

This:
изображение

Duendes .UseIdentityServer() uses the BasePath set by app.UsePathBase() which works properly with CORS unlike BasePathMiddleware and .UseWhen().

https://github.com/DuendeSoftware/IdentityServer/blob/1ef386a7ab82cad5be4faac1d47155a626f43609/src/IdentityServer/Configuration/IdentityServerApplicationBuilderExtensions.cs#L41

Duendes `.UseIdentityServer()` uses the `BasePath` set by
`app.UsePathBase()` which works properly with CORS
unlike `BasePathMiddleware` and `.UseWhen()`.
@AleF83 AleF83 assigned AleF83 and unassigned AleF83 Dec 12, 2024
@AleF83
Copy link
Contributor

AleF83 commented Dec 19, 2024

@gentoo90
Thank you for contributing!
Unfortunately, I have been busy with other projects and haven't had time yet to review your PR.
Hopefully, I'll have time during the holidays!
Sorry for inconvenience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants